package com.lcx.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/** 
 * @Description  
 * @version 1.0 
 * @author lcx
 * @date 2025/2/9 11:25
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Component
@TableName(value = "movie")
public class Movie {
    /**
     * 电影编号
     */
    @TableId(value = "movie_id", type = IdType.INPUT)
    private Long movieId;
    @TableField(exist = false)
    private List<Comment> commentList;//评论列表

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    /**
     * 电影名称（中文）
     */
    @TableField(value = "movie_cn_name")
    private String movieCnName;

    /**
     * 电影名称（外语）
     */
    @TableField(value = "movie_fg_name")
    private String movieFgName;

    /**
     * 电影演职人员
     */
    @TableField(value = "movie_actor")
    private String movieActor;

    /**
     * 电影导演
     */
    @TableField(value = "movie_director")
    private String movieDirector;

    /**
     * 电影详情
     */
    @TableField(value = "movie_detail")
    private String movieDetail;

    /**
     * 电影时长
     */
    @TableField(value = "movie_duration")
    private String movieDuration;

    /**
     * 电影类型
     */
    @TableField(value = "movie_type")
    private String movieType;

    /**
     * 电影评分 默认为0
     */
    @TableField(value = "movie_score")
    private Double movieScore;

    /**
     * 电影票房 默认为0
     */
    @TableField(value = "movie_boxOffice")
    private Double movieBoxOffice;

    /**
     * 电影参评人数 默认为0
     */
    @TableField(value = "movie_commentCount")
    private Long movieCommentCount;

    /**
     * 电影上映时间
     */
    @TableField(value = "movie_releaseDate")
    private String movieReleasedate;

    /**
     * 电影制片地区
     */
    @TableField(value = "movie_country")
    private String movieCountry;

    /**
     * 电影海报
     */
    @TableField(value = "movie_picture")
    private String moviePicture;

    /**
     * 电影状态 默认为1  1：在线 0：下架
     */
    @TableField(value = "movie_state")
    private Integer movieState;
    /**
     * 电影所属的影院id ,如果为0就表示是平台管理员发布的电影
     */
    @TableField(value = "cinema_id")
    private int cinemaId;

}